package com.anyview.service;


import com.anyview.po.CompanyGoods;
import com.anyview.vo.DownloadExcelVo;
import com.anyview.vo.Result;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * excel服务接口
 */
@Service
public interface ExcelTestService extends IService<CompanyGoods> {
    /**
     * 在两个时间戳之间找出出货记录
     *
     * @param downloadExcelVo 1

     */
    ResponseEntity<byte[]> downloadExcelBetweenDate(DownloadExcelVo downloadExcelVo);

    /**
     * 将excel的数据导入到数据库
     *
     * @param file 文件
     * @return 返回响应结果
     */
    Result<Boolean> excelImportDatabase(MultipartFile file) throws IOException;
}
